<template>
    <div class="counpon-item">
        <div class="body">
            <div class="icon">
                <img :src="require('@/assets/icon/coupon_top.png')" alt="" />
            </div>
            <div class="reduce row">
                <span>￥</span>
                <span class="num">{{ item.reduce }}</span>
            </div>
            <div class="limit">满{{ item.limit }}可用</div>
            <div class="expire-time">5天后失效</div>
        </div>
    </div>
</template>

<script>
export default {
    props: {
        item: {
            type: Object,
            default() {
                return {
                    title: "麦当劳专享受红包",
                    type: "reduce",
                    reduce: 5,
                    limit: 40,
                    expireTime: new Date().getTime(),
                    effectiveTime: new Date().getTime(),
                    des: "限外卖订单使用"
                };
            }
        }
    },
    data() {
        return {};
    },

    methods: {}
};
</script>


<style lang="less" scoped>
.counpon-item {
    border: 1px solid #999;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 20px;
    color: #888;
    .body {
        position: relative;
        width: 100%;
        text-align: center;

        .icon {
            position: absolute;
            right: 0;
            top: 0;
            width: 80px;
            transform: translateX(45px) translateY(-45px);
        }
        .reduce {
            color: #fb4e44;
            font-weight: 600;
            font-size: 32px;
            justify-content: center;
            align-items: flex-end;
            .num {
                font-size: 45px;
            }
        }
        .limit {
            margin-bottom: 10px;
        }
    }
}
</style>